package com.taotao.adapter.controller.impl;

import com.taotao.adapter.controller.Controller;
import com.taotao.adapter.controller.ControllerAdapter;

/**
 * @Author: wangjin
 * @CreateTime: 2022-06-27  21:00
 */
public class RequestHandlerControllerAdapter implements ControllerAdapter {
    @Override
    public boolean supports(Controller controller) {
        return controller instanceof RequestHandlerController;
    }

    @Override
    public void handler(Controller controller) {
        RequestHandlerController requestHandlerController= (RequestHandlerController) controller;
        requestHandlerController.requestHandler();
    }
}
